			<h3>Edit campaign</h3>
                        <p class="go_notice"><?php echo $msg;?></p>
                        
			<?php 
	 			$action_url='C=addons_modules'.AMP.'M=show_module_cp'.AMP.'module=spider'.AMP.'method=edit';
	 			$editUrl=BASE.AMP.'C=addons_modules'.AMP.'M=show_module_cp'.AMP.'module=spider'.AMP.'method=editcampaign';
	 			$hidden=array('tableName'=>'spider_campaign');
	 			//print_r($camapins);
	 		?>
			<?=form_open($action_url, '',$hidden);?>
			<table class="mainTable" border="0" cellspacing="0" cellpadding="0">
			<thead>
				<tr>
					<th><input type="checkbox" name="select_all" class="toggle_all" /></th>
					<th class="header">campaign Name</th>
					<th colspan="3">Action</th>
				</tr>
			</thead>
			<?php foreach ($campaigns as $campaign):?>
			<tr>
				<td>
					<input type="checkbox" name="toggle[]" class="toggle" value=<?php echo $campaign['campaign_id'];?> />
				</td>
				<td>
					<a href="<?php echo $editUrl.'&campaignId='.$campaign['campaign_id']; ?>" ><?php echo $campaign['campaign_name'];?></a>
				</td>
				<td>
					<a href="<?php echo $editUrl.'&campaignId='.$campaign['campaign_id']; ?>" >Edit</a>
				</td>
				<td>
					<a href="<?php echo BASE.AMP.$action_url.'&campaignId='.$campaign['campaign_id'].'&action=delete&campaignName='.$campaign['campaign_name']; ?>" >Delete</a>
				</td>
                                <td>
                                    <?php
                                        if($campaign['active']=="1"){
                                                $text='Deactive';
                                                $url='0';
                                            } else{
                                                $text='Active';
                                                $url='1';
                                            }
                                    ?>
                                    <a href="<?php echo BASE.AMP.$action_url.'&campaignId='.$campaign['campaign_id'].'&action=activation&param='.$url.'&campaignName='.$campaign['campaign_name']; ?>" ><?php echo $text;?></a>
				</td>
			</tr>
			<?php endforeach;?>
			
			</table>
                        <p><?php echo form_submit(array('name'=>'deleteAll', 'value'=>'Delete selected ', 'class' => 'submit'));?></p>
                        <?php echo form_close();?>
		